Platform Explorer / Nuxeo Platform 5.8

Contribution org.nuxeo.dam.layouts--widgettypes

This contribution is part of XML component org.nuxeo.dam.layouts inside nuxeo-dam-jsf-5.8.jar

Extension Point

Extension point widgettypes of component WebLayoutManager.

Contributed Items

  • <widgetType name="dam_title">
          <configuration>
            <sinceVersion>5.7</sinceVersion>
            <title>DAM Title</title>
            <description>
              <p>
                This widget type displays the title of a document.
              </p>
              <p>
                It requires the following fields configuration: first field maps
                the document.
              </p>
            </description>
          </configuration>
          <handler-class>
            org.nuxeo.ecm.platform.forms.layout.facelets.plugins.TemplateWidgetTypeHandler
          </handler-class>
          <property name="template">
            /dam/widgets/title_widget_template.xhtml
          </property>
        </widgetType>
  • <widgetType name="damAssetViewNoDocument">
          <configuration>
            <sinceVersion>5.7</sinceVersion>
            <title>No Document selected</title>
            <description>
              <p>
                This widget type displays a placeholder when no document is
                selected.
              </p>
            </description>
          </configuration>
          <handler-class>
            org.nuxeo.ecm.platform.forms.layout.facelets.plugins.TemplateWidgetTypeHandler
          </handler-class>
          <property name="template">
            /dam/widgets/dam_asset_view_no_document.xhtml
          </property>
        </widgetType>

XML Source

<extension point="widgettypes" target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager">
    <widgetType name="dam_title">
      <configuration>
        <sinceVersion>5.7</sinceVersion>
        <title>DAM Title</title>
        <description>
          <p>
            This widget type displays the title of a document.
          </p>
          <p>
            It requires the following fields configuration: first field maps
            the document.
          </p>
        </description>
      </configuration>
      <handler-class>
        org.nuxeo.ecm.platform.forms.layout.facelets.plugins.TemplateWidgetTypeHandler
      </handler-class>
      <property name="template">
        /dam/widgets/title_widget_template.xhtml
      </property>
    </widgetType>

    <widgetType name="damAssetViewNoDocument">
      <configuration>
        <sinceVersion>5.7</sinceVersion>
        <title>No Document selected</title>
        <description>
          <p>
            This widget type displays a placeholder when no document is
            selected.
          </p>
        </description>
      </configuration>
      <handler-class>
        org.nuxeo.ecm.platform.forms.layout.facelets.plugins.TemplateWidgetTypeHandler
      </handler-class>
      <property name="template">
        /dam/widgets/dam_asset_view_no_document.xhtml
      </property>
    </widgetType>

  </extension>